cc.Class({
    extends: cc.Component,

    properties: {
        topshow :{
            default:null,
            type :cc.Node,
        },
    },

    onLoad :function() {
        // 添加触摸开始事件监听器
        
        this.node.on(cc.Node.EventType.TOUCH_END,this.onTouchStart,this)
        
    },

    onTouchStart: function(e) {
       
        
            
        var topshow = this.topshow;
        if(topshow.childrenCount > 0) {
            var tgchildArry = topshow.children;
            for(var i = 0; i < tgchildArry.length; i++) {
                tgchildArry[i].destroy();
            }
        }
        event.stopPropagation()
        
    },

    start () {
    },

    // update (dt) {},
});
